<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('InfoSchool/index')}">学校主页配置表</a></li>
        <li><a href="{:url('InfoSchool/add')}">新建更新</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('InfoSchool/sort')}"> 
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                <th>生效日期</th>
				<th>更新摘要说明</th>
                <th>上传时间</th>
                <th width="200">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.info_school_id}"></td>
					<td>{$vo.begin_time}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.create_time}</td>
                    <td>
                        <empty name="vo.status">
						    <a href="{:cmf_url('set',array('id'=>$vo.info_school_id,'status'=>1))}" class="js-ajax-dialog-btn" data-msg="确定启用吗？">启用</a>
                        <else/>
                            <a href="{:cmf_url('set',array('id'=>$vo.info_school_id,'status'=>0))}" class="js-ajax-dialog-btn" data-msg="确定停用吗？">停用</a>
                        </empty>
                        <a href="{:cmf_url('edit',array('id'=>$vo.info_school_id))}">编辑</a>
                        <a href="javascript:look({$vo.info_school_id})">浏览</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
            <tfoot>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                <th>生效日期</th>
                <th>更新摘要说明</th>
                <th>上传时间</th>
                <th width="200">{:lang('ACTIONS')}</th>
            </tr>
            </tfoot>
        </table>
        
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    function edit(id){
        //打开新增窗口
        openIframeLayer("/admin/Info_school/edit/id/"+id, '编辑', {
            area: ['80%', '80%'],
        });
    }
    function look(id){
        window.open('http://'+window.location.host+"/admin/info_school/look/id/"+id); 
    }
</script>
</body>
</html>